sudo apt install llvm postgresql-server-dev-all postgresql-9.6-pgpool2 libgd-dev
git clone --depth=1 https://gitee.com/ibopo/imgsmlr.git
cd imgsmlr
make USE_PGXS=1
sudo make USE_PGXS=1 install
make USE_PGXS=1 installcheck
psql DB -c "CREATE EXTENSION imgsmlr;"